package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="InspectionRecord"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class InspectionRecord implements Serializable {

    /** identifier field */
    private Integer inspectionId;

    /** persistent field */
    private int memberId;

    /** nullable persistent field */
    private String inspectionDate;

    /** nullable persistent field */
    private String inspectionCircs;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public InspectionRecord(int memberId, String inspectionDate, String inspectionCircs, String userId, String latestDate, String remark) {
        this.memberId = memberId;
        this.inspectionDate = inspectionDate;
        this.inspectionCircs = inspectionCircs;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public InspectionRecord() {
    }

    /** minimal constructor */
    public InspectionRecord(int memberId, String userId) {
        this.memberId = memberId;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="InspectionId"
     *             unsaved-value="0"
     *         
     */
    public Integer getInspectionId() {
        return this.inspectionId;
    }

    public void setInspectionId(Integer inspectionId) {
        this.inspectionId = inspectionId;
    }

    /** 
     *            @hibernate.property
     *             column="MemberId"
     *             length="10"
     *             not-null="true"
     *         
     */
    public int getMemberId() {
        return this.memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    /** 
     *            @hibernate.property
     *             column="InspectionDate"
     *             length="23"
     *         
     */
    public String getInspectionDate() {
        return this.inspectionDate;
    }

    public void setInspectionDate(String inspectionDate) {
        this.inspectionDate = inspectionDate;
    }

    /** 
     *            @hibernate.property
     *             column="InspectionCircs"
     *             length="2147483647"
     *         
     */
    public String getInspectionCircs() {
        return this.inspectionCircs;
    }

    public void setInspectionCircs(String inspectionCircs) {
        this.inspectionCircs = inspectionCircs;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("inspectionId", getInspectionId())
            .toString();
    }

}
